package cn.netbox.spring.handler;

import org.aspectj.lang.annotation.Aspect;
import org.aspectj.lang.annotation.Before;
import org.springframework.stereotype.Component;

@Component
@Aspect
public class WXYAspect {

    @Before(value = "execution(public void cn.netbox.spring.service.impl.WXYServiceImpl.rentalHouse())")
    public void MethodA(){
        System.out.println("给客户推销房子");
    }
    @Before(value = "execution(public void cn.netbox.spring.service.impl.WXYServiceImpl.rentCollection())")
    public void MethodB(){
        System.out.println("加价");
    }
}
